package com.shun.upms.api;

import com.shun.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  权限Feign接口
 * </p>
 *
 * @author clever
 * @since 2021-09-27
 */
@FeignClient(contextId = "shunUpmsApi",value = "shun-upms",fallback = ShunUpmsApiFallbackClient.class)
public interface ShunUpmsApi {

    /**
     * 检查用户账号和密码匹配
     * @return
     */
    @PostMapping("/upms/user/v1/chkAccAndPwd")
    public R checkUserPasswd(@RequestParam(required = true,value="userAccount")String userAccount, @RequestParam(required = true,value="password")String password);

    @PostMapping("/upms/user/v1/chkTel/{tel}")
    public R checkUserTel(@PathVariable("tel") String tel);

    @PostMapping("/upms/user/v1/getAdminUserInfo")
    public R getAdminUserInfo();

    @PostMapping("/upms/user/v1/getUserBtns")
    public R getUserBtns( );

    @PostMapping("/v1/getInfo")
    public R getInfo();
}